Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind escape and q to exit without running anything #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Julian
Copy link

@Julian Julian commented Jun 6, 2023

This adds a key binding for exiting the TUI via the same key bindings as closing modals.

ISTM perhaps it'd be nicer for escape to be bound to work sort of like a back button, so that if you hit it in the right pane of the TUI you "jump outward" back into the left sidebar. But that is obviously more work than just this 3 line change (and seems more subjective). I'm not sure I can commit to figuring out how to wire that in even if interested, but let me know what you folks think.

@fresh2dev
Copy link

fresh2dev commented Jul 3, 2023

These are my interpretation of vim-friendly hacker 🥷 keybindings:

13c9188
20a26bc

From the command tree:

  • enter to focus the selected command.
  • j to move down one command.
  • k to move up one command.
  • g to go to top.
  • G to go to bottom.
  • u to page-up.
  • d to page-down.
  • ? to show command help.
  • / to focus search.
  • q to quit without running.

From the selected command form:

  • escape to focus the command-tree pane.

Globally:

  • ctrl+y to copy the command text to clipboard.

@daneah daneah added the enhancement New feature or request label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants